(function($) {
// Set calender default options
$.datepicker.setDefaults({
    appendText: '(年-月-日)',   // Show description text after date element
    autoSize: true,             // Auto size by date format
    changeMonth: true,          // Show month select
    constrainInput: true,       // Only format characters allowed
    dateFormat: 'yy-mm-dd',
    firstDay: 0,                // 0 stand for sunday
    showButtonPanel: true,      // Show 'today' and 'close' button
    showOn: 'both',             // Show choose button and choose img
    buttonImage: '/images/calendar.gif',
    buttonImageOnly: true
});

})(jQuery);
